const fs = require('fs')
const path = require('path')
const selfname = path.basename(__filename)

const routes = fs.readdirSync(__dirname)

module.exports = routes
  .filter(file => file !== selfname)
  .map(file => require(`./${file}`))
